/**
 * Copyright (c) 2019 EOVA.CN. All rights reserved.
 * 
 * Licensed under the EPPL license: http://eova.cn/eppl.txt
 * For authorization, please contact: admin@eova.cn
 */
package com.oss.model;

import com.eova.common.base.BaseModel;
import com.eova.common.utils.time.DateUtil;
import com.jfinal.plugin.activerecord.Db;

import java.text.ParseException;

/**
 * 营销码
 * @author guyw
 *
 */
public class YxmOrder extends BaseModel<YxmOrder> {

	private static final long serialVersionUID = 1064291771401662738L;

	public static final YxmOrder dao = new YxmOrder();

	public void deleteByDate(String startDate,String endDate, String type){

		Db.update("delete from yxm_order where type = ? and order_time >= ? and order_time < ?",
				type, startDate, endDate);

	}


}